import { localeSort, readPlaylist, relativePath, writePlaylist } from './utils'

/**
 * @param {string} playlist 列表名称
 */
export async function resortPlaylist(playlist: string) {
  const data = await readPlaylist(playlist)

  await writePlaylist(playlist, data)

  console.log(`游戏列表“${playlist}”已排序完成`)
}
